<?php
defined('IN_YuLin') || exit('NO PERMIT!');
UserLogin(U($m.'/'.$c.'/'.$a));

$showpage = '';
// 获取所有的彩种类别，准备页面支持用户设置返点
$operation = NoBadStr($_REQUEST['operation']);
$cateTab   = Table('lottery_category');
$sql       = 'SELECT id, name FROM ' . $cateTab . ' WHERE status = 0';
$cateList  = $db->getall($sql, 'id');
switch ($operation){
    case 'managecode':
        $host     = $_SERVER['HTTP_HOST'];
        $type     = $_GET['type'] ? NoBadStr($_GET['type']) : '1';
        $showpage = 'member/manageCode';
        break;
    default:
        $showpage = 'member/manageInvite';
        break;
}
$tpl->display($showpage);

?>